/**
 * Created by yqj on 2017/2/20.
 */

const dictionaryApi = require('../api/dictionary-api.js');

module.exports = (router) => {
    router.param(['type'], function (req, res, next, value) {
        console.log(value);
        next();
    });
    router.get(`/restapi/smartfactory/kb/property/:type`, dictionaryApi.getDictionary);  // 查询书籍类型
    router.get(`/restapi/smartfactory/kb/property/booktype`, dictionaryApi.getAllUserRoles);  // 查询书籍类型
    router.get(`/restapi/smartfactory/kb/property/brand`, dictionaryApi.getAllUserRoles);  // 查询书籍品牌
    router.get(`/restapi/smartfactory/kb/property/grade`, dictionaryApi.getAllUserRoles);  // 查询年级字典
    router.get(`/restapi/smartfactory/kb/property/province`, dictionaryApi.getAllUserRoles);  // 查询省份字典
    router.get(`/restapi/smartfactory/kb/property/selfcontenttype`, dictionaryApi.getAllUserRoles);  // 查询自建内容类型字典
    router.get(`/restapi/smartfactory/kb/property/series`, dictionaryApi.getAllUserRoles);  // 查询书籍系列
    router.get(`/restapi/smartfactory/kb/property/subject`, dictionaryApi.getAllUserRoles);  // 查询书籍科目
    router.get(`/restapi/smartfactory/kb/property/topictype`, dictionaryApi.getAllUserRoles);  // 查询题目类型
    router.get(`/restapi/smartfactory/kb/property/version`, dictionaryApi.getAllUserRoles);  // 查询书籍适用版本
    router.get(`/restapi/smartfactory/kb/property/volume`, dictionaryApi.getAllUserRoles);  // 查询书籍册别

};